package board.model.service;

import java.io.File;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.json.JSONArray;
import org.springframework.web.servlet.ModelAndView;

import board.dto.BoardDTO;
import board.dto.ListDTO;
import board.dto.PagingDTO;
import board.util.Utilities;

public interface Service {
	public ListDTO getNoticeList(HashMap map) throws SQLException;
	public String getListForMain() throws SQLException;
	public String getFreeBoardListForMain() throws SQLException;
	public BoardDTO getContentByNO(int no) throws SQLException;
	public BoardDTO getContentByPlus(int no) throws SQLException;
	public BoardDTO getContentByMinus(int no) throws SQLException;
	public void writeContent(BoardDTO ndto) throws SQLException;
	public ModelAndView downloadFile(HttpServletRequest request,
			HttpServletResponse response) throws Exception;
	public void deleteContentByNO(int no, String uploadPath) throws SQLException;
	public BoardDTO getContentByNOForForm(int no) throws SQLException;
	public void deleteFileData(int no, File file) throws SQLException;
	public void modifyContent(BoardDTO ndto) throws SQLException;
}
